package com.atguigu.spring.entity;

import java.util.List;

public class Cooker {
    private Integer id;
    private String cookerName;
    private List<Pig> pigList;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCookerName() {
        return cookerName;
    }

    public void setCookerName(String cookerName) {
        this.cookerName = cookerName;
    }

    public List<Pig> getPigList() {
        return pigList;
    }

    public void setPigList(List<Pig> pigList) {
        this.pigList = pigList;
    }

    public Cooker(Integer id, String cookerName, List<Pig> pigList) {
        this.id = id;
        this.cookerName = cookerName;
        this.pigList = pigList;
    }

    public Cooker() {
    }

    @Override
    public String toString() {
        return "Cooker{" +
                "id=" + id +
                ", cookerName='" + cookerName + '\'' +
                ", pigList=" + pigList +
                '}';
    }
}
